﻿//8、语句
namespace ConsoleApp8
{

    internal class Program
    {
        static void Main(string[] args)
        {
            int x = 3;
            int y = 2;
            int z = 4;
            if (z > x)
            {
                Console.WriteLine(z);
            }
            else
            {
                Console.WriteLine(x);
            }

            Console.WriteLine("*****");

            while (z < 4)
            {
                Console.WriteLine("继续");
                z++;
            }

            Console.WriteLine("*****");

            do
            {
                Console.WriteLine("继续");
                z++;
            } while (z < 4);

            Console.WriteLine("输入数字：");
            int i = Convert.ToInt32(Console.ReadLine());
            switch (i)
            {
                case 3: Console.WriteLine($"x={x}");
                    break;
                case 2: Console.WriteLine($"y={y}");
                    break;
                case 4: Console.WriteLine($"z={z}");
                    break;
                default: Console.WriteLine("错误！");
                    break;
            }

        }
    }






}